package com.qf.cloud2203.coupon.controller;

import com.qf.cloud2203.coupon.service.ICouponService;
import com.qf.cloud2203.docoupon.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 苇名一心
 * @since 2023-03-10
 */
@RestController
@RequestMapping("/coupon")
public class CouponController {

    @Autowired
    ICouponService couponService;

    /**
     * 生成100个优惠卷接口
     * @return
     */
    @GetMapping("/getcoupon")
    public ResultVo getCoupon(){

        couponService.getCoupons();

        return ResultVo.ok();
    }

}
